package learn.design.patterns.E_Builder.StandardBuilder;

public class TestClass {
    public static void main(String[] args) {
        StandardComputer.Director director = new StandardComputer.Director();
        StandardComputer.ConcreteBuilder builder = new StandardComputer.ConcreteBuilder();
        StandardComputer standardComputer = director.constructComputer(
                builder.setProcessor("Intel i7")
                .setRam("16GB")
                .setHardDrive("1TB SSD")
        );

        System.out.println("Processor: " + standardComputer.getProcessor());
        System.out.println("RAM: " + standardComputer.getRam());
        System.out.println("Hard Drive: " + standardComputer.getHardDrive());
    }
}
